//
//  ChatDetailImageCell.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2020/2/20.
//  Copyright © 2020 tao Tao. All rights reserved.
//

import UIKit

class ChatDetailImageCell: UICollectionViewCell {
    
    @IBOutlet private weak var imageView: UIImageView! {
        didSet {
            imageView.layer.cornerRadius = 8
            imageView.layer.masksToBounds = true
        }
    }
    
    func configure(with vm: AdvisoryDetailViewModel.AdvisoryDetailImageViewModel) {
        imageView.kf.setImage(with: URL(string: vm.thumbnailUrl))
    }

}
